package com.example.parkinglotmanagementsystem;

import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class Application extends javafx.application.Application {
    public static Scene mainScene;

    static {
        try {
            mainScene = new Scene(new FXMLLoader(Application.class.getResource("Main-View.fxml")).load());
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    @Override
    public void start(Stage stage) {
        stage.setTitle("车辆管理系统");
        stage.setScene(mainScene);
        stage.setResizable(false);
        stage.show();
    }

    public static void main(String[] args) {
        launch();
    }
}